<?php 
header('Content-Type:text/html;charset=gbk');
session_start();
$username = $_SESSION['username'];
require_once("db_manage.php");
//require_once './bbs/include/common.inc.php';

$title = $_POST['title'];
$content = $_POST['content'];
$textlink = $_POST['textlink'];
$turn = $_POST['turn'];

//$travel = array($title,$area,$view,$bed,$traffic,$expense,$num,$costdate,$content,$discuz_uid);
$dairy = array($title,$content,$textlink,$turn,$username);

/*

for($i=0;$i<count($dairy);$i++){
				echo $dairy[$i];
				echo '<p>';			
			}
			*/
			
//update sister link;
//updateSisterLink($linkname, $link);
//addTravel($travel);
//echo "<script>location.href='manage_list_travel.php';<//script>";
addDairy($dairy);
echo "<script>location.href='manage_home_diary.php';</script>";
?>